import ViewUI from 'view-ui-plus'
import 'view-ui-plus/dist/styles/viewuiplus.css'
import './css/index.scss'

ViewUI.Message.config({
	background: true,
	duration: 3
})

const index = {
	install: function (Vue, { viewOption = {} }) {
		let ViewUiOption = {
			transfer: true,
			capture: false,
			select: {
				arrow: 'md-arrow-dropdown',
				arrowSize: 20
			}
		}
		let setupOption = Object.assign(ViewUiOption, viewOption)
		Vue.use(ViewUI, setupOption)
		Vue.config.globalProperties.$ViewUI = ViewUI
	}
}
export default index
